package com.ruoyi.project.WebMoudle.advertSeat.mapper;

import java.util.List;
import com.ruoyi.project.WebMoudle.advertSeat.domain.AdvertSeat;
import org.apache.ibatis.annotations.Param;

/**
 * 店铺广告位Mapper接口
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public interface AdvertSeatMapper 
{
    /**
     * 查询店铺广告位
     * 
     * @param id 店铺广告位ID
     * @return 店铺广告位
     */
    public AdvertSeat selectAdvertSeatById(Long id);

    /**
     * 查询店铺广告位列表
     * 
     * @param advertSeat 店铺广告位
     * @return 店铺广告位集合
     */
    public List<AdvertSeat> selectAdvertSeatList(AdvertSeat advertSeat);

    /**
     * 新增店铺广告位
     * 
     * @param advertSeat 店铺广告位
     * @return 结果
     */
    public int insertAdvertSeat(AdvertSeat advertSeat);

    /**
     * 修改店铺广告位
     * 
     * @param advertSeat 店铺广告位
     * @return 结果
     */
    public int updateAdvertSeat(AdvertSeat advertSeat);

    /**
     * 删除店铺广告位
     * 
     * @param id 店铺广告位ID
     * @return 结果
     */
    public int deleteAdvertSeatById(Long id);

    /**
     * 批量删除店铺广告位
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAdvertSeatByIds(String[] ids);

    AdvertSeat checkNumUnique(AdvertSeat advertSeat);

    List<AdvertSeat> queryUsableSeat(@Param("startTime") String startTime,@Param("endTime") String endTime);
}
